package CommandesAlpha;
import editeur.EditeurAlpha;
import Commande.Commande;
import IHM.IHM_addon_Alpha;


public class close_macro implements Commande {

	private EditeurAlpha edit;
	private IHM_addon_Alpha ihm;

public close_macro(EditeurAlpha ed,IHM_addon_Alpha i){
	edit=ed;
	ihm=i;
}
public void execute( )
{	
	ihm.debog("Commandes.close_macro");
	String name=ihm.getMacroName();
	if (name!=null){
		String desc=edit.closeMacro(name);
		if (desc!=null){
		ihm.setCurrentMacroDescription(desc);
		}
	}
//	

}
public String toString(){
	return "close_macro";
}


}
